package com.neusoft.elmboot.bean;

import java.util.List;

/**
 * 
 * @author chens
 *
 */
public class Business {
	private Integer businessId;
	private String password;
	private String businessName;
	private String businessAddress;
	private String businessExplain;
	private Double starPrice;
	private Double deliveryPrice;

	/**
	 * 一个商家对应多个餐品，是一对多关系
	 */
	private List<Food> boodList;

	public Business() {
		super();
	}

	public Business(Integer businessId, String password, String businessName, String businessAddress,
			String businessExplain, Double starPrice, Double deliveryPrice) {
		super();
		this.businessId = businessId;
		this.password = password;
		this.businessName = businessName;
		this.businessAddress = businessAddress;
		this.businessExplain = businessExplain;
		this.starPrice = starPrice;
		this.deliveryPrice = deliveryPrice;
	}

	public Business(Integer businessId) {
		this.businessId = businessId;
	}

	public Integer getBusinessId() {
		return businessId;
	}

	public void setBusinessId(Integer businessId) {
		this.businessId = businessId;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getBusinessName() {
		return businessName;
	}

	public void setBusinessName(String businessName) {
		this.businessName = businessName;
	}

	public String getBusinessAddress() {
		return businessAddress;
	}

	public void setBusinessAddress(String businessAddress) {
		this.businessAddress = businessAddress;
	}

	public String getBusinessExplain() {
		return businessExplain;
	}

	public void setBusinessExplain(String businessExplain) {
		this.businessExplain = businessExplain;
	}

	public Double getStarPrice() {
		return starPrice;
	}

	public void setStarPrice(Double starPrice) {
		this.starPrice = starPrice;
	}

	public Double getDeliveryPrice() {
		return deliveryPrice;
	}

	public void setDeliveryPrice(Double deliveryPrice) {
		this.deliveryPrice = deliveryPrice;
	}

	public List<Food> getBoodList() {
		return boodList;
	}

	public void setBoodList(List<Food> boodList) {
		this.boodList = boodList;
	}

	@Override
	public String toString() {
		return "Business [businessId=" + businessId + ", password=" + password + ", businessName=" + businessName
				+ ", businessAddress=" + businessAddress + ", businessExplain=" + businessExplain + ", starPrice="
				+ starPrice + ", deliveryPrice=" + deliveryPrice + ", boodList=" + boodList + "]";
	}

}
